package org.yijiaganxi.common.entity.category;

import java.util.Date;

import javax.validation.constraints.NotBlank;

import org.yijiaganxi.common.entity.banner.YjgxBanner;
import org.yijiaganxi.common.entity.banner.YjgxBanner.YjgxBannerBuilder;

import com.baomidou.mybatisplus.annotations.TableField;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 分类管理
 * </p>
 *
 * @author zhangguowei123
 * @since 2020-08-29
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class YjgxCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    @TableField("createDate")
    private Date createDate;
    @TableField("modifyDate")
    private Date modifyDate;
    @TableField("createUser")
    private String createUser;
    @TableField("modifyUser")
    private String modifyUser;
    private String name;
    /**
     * 0   一级分类  1二级分类
     */
    private Integer type;
    /**
     * 默认封面
     */
    @NotBlank(message = "默认封面不能为空")
    @TableField("defaultImg")
    private String defaultImg;
    /**
     * 选择封面
     */
    @NotBlank(message = "选择封面不能为空")
    @TableField("selectImg")
    private String selectImg;
    /**
     * 没有选择封面
     */
    @NotBlank(message = " 没有选择封面不能为空")
    @TableField("noSelectImg")
    private String noSelectImg;
    /**
     * 是否启用  0不用  1用
     */
    private Integer status;
    /**
     * 是否首页显示  0不显示 1显示
     */
    @TableField("showIndexStatus")
    private Integer showIndexStatus;
    /**
     * 排序
     */
    private Integer sort;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getModifyUser() {
        return modifyUser;
    }

    public void setModifyUser(String modifyUser) {
        this.modifyUser = modifyUser;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getDefaultImg() {
        return defaultImg;
    }

    public void setDefaultImg(String defaultImg) {
        this.defaultImg = defaultImg;
    }

    public String getSelectImg() {
        return selectImg;
    }

    public void setSelectImg(String selectImg) {
        this.selectImg = selectImg;
    }

    public String getNoSelectImg() {
        return noSelectImg;
    }

    public void setNoSelectImg(String noSelectImg) {
        this.noSelectImg = noSelectImg;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getShowIndexStatus() {
        return showIndexStatus;
    }

    public void setShowIndexStatus(Integer showIndexStatus) {
        this.showIndexStatus = showIndexStatus;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "YjgxCategory{" +
        "id=" + id +
        ", createDate=" + createDate +
        ", modifyDate=" + modifyDate +
        ", createUser=" + createUser +
        ", modifyUser=" + modifyUser +
        ", name=" + name +
        ", type=" + type +
        ", defaultImg=" + defaultImg +
        ", selectImg=" + selectImg +
        ", noSelectImg=" + noSelectImg +
        ", status=" + status +
        ", showIndexStatus=" + showIndexStatus +
        ", sort=" + sort +
        "}";
    }
}
